I think you might have saved the HTML source of the GitHub page showing the file. You probably want to download the file directly (e.g. using this link: https://raw.githubusercontent.com/zerotypic/wasg-register/master/wasg-register.py), or clone the repository.