Fixes to get sample wsgi app running on python 3.3