You can use PyScript to write code in Processing’s p5*js or pjs flavors using Python syntax! Take a look at some of my PyScript sketches to see how to do it: PyScript