Port app to Python 2.7 runtime