First commit - working version of pyclock