Use subprocess32 on Python2
Ensure wsgi environ is native string type
Python 2/3 compatible PATH_INFO parsing