Change time.clock() to time.time()