It seems like the import of Tkinter in gui.py breaks the testing of some examples, giving this error:
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1767, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
TclError: no display name and no $DISPLAY environment variable
It seems like the import of Tkinter in gui.py breaks the testing of some examples, giving this error: