From my point of view, an incomprehensible stack trace is a big improvement over silently failing to work, because then you learn to comprehend the stack trace and you can fix the error. This is one of the central design principles of Python, rooted in experience with teaching beginners to program in the ABC teaching language.
The extra code is not actually magic gibberish, although it does appear that way at first. In Python you can comment out individual lines and observe the effect, change the parameters, or type
>>> from pygame import *
>>> help(display.flip)
Although an IDE may make that easier, and of course you don't start out knowing that.
What is your experience teaching beginners to program? What tools did you have them use, and what did they have the most difficulty with?