Graph based data processing for python