Please Help: Issue with 3D

when you can use p5.js (instead of python):

check the online editor:

see https://editor.p5js.org/