I'm using python 2.4 on a shared host. I installed hashlib, uuid, pysqlite, psycopg2, MySQL-python, PyGreSQL. I'm using web2py with mod_python with my htaccess as follows:
SetHandler python-program PythonHandler web2py_modpython PythonDebug On PythonPath "sys.path + ['', '/path/to/w2env/lib/python2.4/site- packages', '/path/to/w2env/lib/python2.4', '/path/to/w2env/lib/ python2.4/site-packages/uuid-1.30-py2.4.egg', ''/path/to/w2env/lib/ python2.4/site-packages/pysqlite-2.6.0-py2.4-linux-x86_64.egg']"

