Made transform serialize the repr method for python