How to set up A/B tests in Python and Flask