I appreciate this is quite an old post but I stumbled across it when writing a tutorial on how to set up a python webserver on the Pi.
Another option could be to use virtual environments for your applications dependencies ie venv.
If its of any use I've put all the steps on my tutorial https://websonic.co.uk/blog/setting-up-a-python-secure-web-server-on-raspberry-pi