changes to c and python formatting