added processing functions in python, still work in progress