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