The common wisdom of UNIX is that finding a working directory to do things when root is a bad idea. The argument says that it opens the door to the Trojans. Not intending to add a working directory to the Python import search module at startup as root, the twist basically tries to follow this wisdom.
As another commenter said, you can explicitly tell PYTHONPATH to include directories themselves that contain the code you need.
You can also skip execution as fully root and use authbind to bind low port numbers without root privileges. This is how all my servers are deployed.
source share