remove module settings from wsgi.py and fixing an error in init