PEP, Message Dialog and GLib fixes

- There are several PEP fixes
- Message Dialog has it own execution function
- GLib and Gtk.threads_init have to be used before main function in order to avoid collistion between timeouts and threads.