Cleanup clocks.py, remove references to old write method