Ballclock code in go and python