WSGI settings incorrectly makes instance global