Update clocks.py, add check and debug statements