This is a duplicate of:
https://github.com/mozilla/gaia-ui-tests/blob/master/gaiatest/apps/marketplace/app.py#L50
So please use the existing version as it's more Pythonic too.