Pylons
From DreamHost
Pylons is a framework for python. In the same way the rails is a framework for ruby. See the official website. Pylons can be deployed via FastCGI on Dreamhost.
Python
The easiest way would be to do a Virtual Python installation as described in Python#Virtualenv.
Installation
easy_install makes the installation a blast; just refer to the Pylons documentation.
You may find the Django instructions helpful as well.
FastCGI
The FastCGI installations apply, except that you don't need to limit the FastCGI script to dispatch.fcgi, other names with .fcgi suffix seem to work too. fcgi.py seems to be more reliable than Flup on Dreamhost.
wget http://svn.saddi.com/py-lib/trunk/fcgi.py
Here is a working script, found in [1].
#!/home/username/bin/python
from paste.deploy import loadapp
from fcgi import WSGIServer
app = loadapp('config:/home/username/www.yourdomain.net/yourini.ini')
server = WSGIServer(app)
server.run()

