You're probably right, access to global variables in mulithreading environment requires extra care. You might find reading this helpful: http://blog.notdot.net/2011/10/Migrating-to-Python-2-7-part-1-Threadsafe
- [web2py] concurrency, web2py, and GAE howesc
- [web2py] Re: concurrency, web2py, and GAE Wikus van de Merwe

