Pygtk bug

Added an option to avoid all interaction with gtk/pygtk. Modified some imports and added only when needed, and exit them graciously instead of breaking.