progress on properly reading and formating data from python into C