Python Time Monotonic Function Definition