def _import(module, cls):
global Scanner<EOL>try:<EOL><INDENT>cls = str(cls)<EOL>mod = __import__(str(module), globals(), locals(), [cls], <NUM_LIT:1>)<EOL>Scanner = getattr(mod, cls)<EOL><DEDENT>except ImportError:<EOL><INDENT>pass<EOL><DEDENT>
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...