A note from the article says:
I suggest Python 2.7 for this code
No, just no. Use a later version of python 3. The article is 24 years old.