removed some global variables from python transformation