Update app to Python 2.7 from the deprecated 2.5