base: fix for wsgi path info handling

* PEP8 and PEP257 clean-up and wsgi fixes.