Updated for compatibility with Python 2.7 community openshift app; also bugfix of replacing 'APP' with 'OPENSHIFT_HOMEDIR' in wsgi/application