updates for python3 and wsgi deployment