fixed python files to match new data structure