on the file wsgi/openshift/settings.py

ON_OPENSHIFT = False
if os.environ.has_key('OPENSHIFT_REPO_DIR'):
    ON_OPENSHIFT = True

has_key not supported on python3xx. 

 
but the below code will work with python2XX and python3xx

ON_OPENSHIFT = 'OPENSHIFT_REPO_DIR' in os.environ

i tested on python330,python264 etc.