Changed time.clock() to time.time()