Your code looks good. 
The __repr__ method is used to print some information of the class, if you use print(my_transform).
You could also remove it and just use the default Python implementation.
Other transform classes use it to print additional information about the passed arguments etc.