preparing the code for deploying on Google App Engine