code: def load_plugin(filename, plugin_globals, plugin_locals):
          
  
          plugin = open(filename, 'rU')
  
          try:
              exec(plugin.read(), plugin_globals, plugin_locals)
          except ImportError:
              return False
          except Exception as e:
              raise WidgetPluginError("%s: %s" % (e.__class__, str(e)))
          finally:
              plugin.close()
  
          return True
docs: Load the plugin from the given file.  Return True if the plugin was
          loaded, or False if it wanted to be ignored.  Raise an exception if
          there was an error.