Stop assuming that /usr/bin/python exists
This issue is relevant to the following ticket: #29913 (moved)
In short, the problem in #29913 (moved) was that Python 3 scripts cannot depend on a hardcoded path in order to find the Python 3 executable, because the path itself is not immutable. (For instance, as seen in that ticket itself.
Unfortunately, the same exact issue also applies to Python 2 scripts and their relevant executables.