Add shebang line and make .py files executable.

This will allow users to run the files without having to type `python` every
time (at least for non-Windows users).