python scripts to transform data