Compute hash on whole source file

Use this hash in the Python module, and in %(nodename)s, so that different helper functions in the support code for different Ops will always have different names.
It fixes gh-1172.