Looks like just the sudo invocation of python is causing the issues - it resets the $PATH. This is a test of that hypothesis