Transformation in Python module