Python modules can be stored in web2py/application/<yourapp>/modules folder.
Inside that folder you can put your own modules or any Python Package or module you want to be isolated from the rest of web2py environment.
Related References
loading...
Sources / Reference
"
web2pyslices.com - Using Modules in web2py"