Added shebangs to .py files

Otherwise each file needs to be called explicitly with "python filename.py", which is valid but confusing.

GitHub also auto-added newlines to the end of each file, which doesn't affect any runtime operations.