change imports so it works on windows and with pygtk