Python Replace Class Method Example In Python An Array