Looks like the forum formatter has mangled the code, interpreting some characters as format commands. There’s certainly a missing # from the first line, which I’m sure should read
#!/usr/bin/env python
Oh; I’ve already tried to correct that in the original thread: