Prevent "pid ref'ed before assignment" error in cherrypy.