updated TransformData
python functions