Python Time Function Execution