Migration to Python 2.7

https://developers.google.com/appengine/docs/python/python25/migrate27