Please check out the brief code on http://cherrypy.org. I believe this is Python 3 object oriented code. I can't get it to work on my raspberry pi running Debian Jessie or Raspbian. Preferably, I don't want to download source code for cherrypy, but if I have to I have to. I don't want to mess up Python 2.7, which is required.