Add missing Gdk import, missing issected variable and fix GTK_API_VERSION check
Functions.py: sn.set_* expects bytes not unicode.