Use absolute imports in GUI module

Allows the GUI to be used as a Python module.