Moved Flask app to module for use in fcgi script on production