Any one able to tell me why this line fails in plugin and in the interactive console.

from gi.repository import Gtk as gtk,GObject as gobject,GLib as glib

you can still use import gtk glib and gobject but they are being depricated in favour of the above and the current versions of glade generate xml for the new way not the old.