removed extraneous python calls i think