Wa-Tor implemented in python