Modifying some stuff to make it compatible with python3 and Gtk+3