Switched from gtk to gi, fixed print syntax

Now it should run under python2 and python3