A tutorial for building web applications in Python using CherryPy as the framework and Genshi for the templating language.
A Stack Overflow thread on writing HTTP error handlers for web applications based upon CherryPy.
How to add a 404 error handler to a CherryPy application. The example is sufficiently generic that it can be adapted to whatever fix you need (i.e., it shows how the CherryPy errorpage*() methods are called).
The main thrust of the article is how to whip together a quick and dirty HTTP server for static pages using Python and Cherrypy. I saved this article because the worst-ranked response also tells you how to hardcode (read, make configurable at runtime) the port and IP address a CherryPy instance listens on.
cherrypy.server.socket_port = 80
cherrypy.server.socket_host = '0.0.0.0'