moving from processing to python