Touch ups to Python code

 - Use booleans because booleans.
 - Use /usr/bin/env vor virtual environments.