Updated preferences box to support Python 3, PyGObject and GTK 3