translating scratch to p5py