make pythonpath.sh smart