Update clocks.py, fix not str error