def try_import(module_name):
    """Attempt to import the given module (by name), returning a tuple (True, module object) or (False,None) on ImportError"""
    try:
        module = __import__(module_name)
        return True, module
    except ImportError:
        return False, None
