<s> from __future__ import absolute_import , unicode_literals , division <EOL> import flask <EOL> import wsgi_intercept <EOL> from wsgi_intercept . httplib2_intercept import install <EOL> from . utils import force_import_module <EOL> def http_setup ( connectors , host , port , callback ) : <EOL> install ( ) <EOL> application = flask . Flask ( __name__ ) <EOL> application . debug = True <EOL> if callback : <EOL> callback ( ) <EOL> module = force_import_module ( '<STR_LIT>' ) <EOL> for name in module . __all__ : <EOL> getattr ( module , name ) . mount ( r'<STR_LIT>' , application ) <EOL> wsgi_intercept . add_wsgi_intercept ( host , port , lambda : application ) <EOL> def http_teardown ( host , port ) : <EOL> wsgi_intercept . remove_wsgi_intercept ( host , port ) </s>
