Simulation of casio hand-watch in python