transforms.py fixes