Time Decorator for Python