Shebang line and encoding added.
Redid the regex to read the specification to work on Python 2 and 3.

Fix the test.