Added Python3 support with werkzeug

The static library was last touched in 2009 and doesn't support Python3.  I tried to port it, but I wasn't very successful.  The werkzeug library has a very similar middleware which does support Python3.3, so I used that.