Added ThreadSafeConsole stolen from http://effbot.org/zone/tkinter-threads.htm
Should fix bug #5