Change hashbang and PEP8 compliance

-Switch the python3 call from hard-code to env variable
-Minor formatting changes to comply with line length and import conventions