adjustments to run.py and settings.py to hopefully fix heroku crash