I have a script that uses gevent which monkey patches the standard library to use green threads (cooperative coroutines). I'd like this to run as a background task using techniques described in "homemade task queues" or by using web2py's scheduler. Fundamentally my script only needs access to the DAL to manage jobs and perform manual file uploads (http://web2py.com/book/default/chapter/06#Manual-Uploads). Is there a good way to do this without having the monkey patched standard library (socket module, sll module, etc.) from impacting web2py?
Thanks, Dave