def runMonkey(): mk = Monkey() print mk.get_conf() print mk.get_command() mk.run(mk.get_command()) return static_file( 'monkey.html', root='/Users/dongqingqing/PycharmProjects/ApkPerforTools/static/html')