pygtk: Added safe functionality