code: def _import(module, cls):
      
      global Scanner
  
      try:
          cls = str(cls)
          mod = __import__(str(module), globals(), locals(), [cls], 1)
          Scanner = getattr(mod, cls)
      except ImportError:
          pass
docs: A messy way to import library-specific classes.
      TODO: I should really make a factory class or something, but I'm lazy.
      Plus, factories remind me a lot of java...