move os.environ to settings for mod_wsgi
make the app wsgi compliant