When I run web2py and my app/controller inside a Python console I have all the environment available ... but the web server is not running in the background. I think this is the difference with using web2py Web Shell.
I'm trying to interact from 'console' with a web2py running app/controller ... but I'm not sure it is possible. - Valter