Just reread and it looks like a possible issue with your permissions on the python modules you are calling. If you didn't install them for everyone, it could be causing you issues. Go look at what user is calling python (I suspect www-data or httpd...
I know the post is a little old, but here is the EOL for this device.http://www.cisco.com/en/US/prod/collateral/switches/ps6746/ps8742/end_of_life_c51-686505.html