def mygen(uri): for i in xrange(1, 100): yield "ciao %s" % uri def application(env, start_response=None): return '200 OK', [('Content-Type', 'text/html')], "