python version of data process