Adding a check for name == main in runserver.py to avoid starting the wsgi server when deploying on apache