fixes to python-nginx integration