HAMURABI.BAS ported to Python 3