Python Replace Class Method Example Sentence Using Brackets