How do I add a method with a decorator to a class in python?,MyClass().mymethod()