corrected variable names in python script