big refactor to use pyProcess