Update clock.py

fixed some issue