Added the __name__="__main__" trick so you can import thuban without starting the application directly. This makes debugging possible.