$ run_sketch test.py
py5 encountered an error in your code:
File "test.py", line 4, in draw
2 def draw():
3 background('blue')
--> 4 rect(random_int(py5.width), 20, 30, 40)
NameError: The name "py5" is not defined. Your Sketch is also running in Imported Mode. Remember that in imported mode you do not access py5's methods with the `py5.` module prefix.
Updated error message to provide this instead: