I am learning perl and python... at the same time, not my by design but it has to be done.
Question:
In a perl script I use(see below) at the head of my txt.
To run Python with warnings turned on:
python -W all file.py
In response to:
Is there something I should be doing on routine for my python scripts?
I think it's generally a good idea to make sure your code is compliant with PEP 8. As alluded to in another answer, you can do this programatically:
pip install pep8 && pep8 file.py