changing main.py for work with gtk_ui.py