def load_config(path):
    # Load and parse required config file
    try:
        config = configparser()
        config.optionxform = str
        if len(config.read(path)) != 1:
            raise IOError
    except StandardError:
        # Either couldn't read/find the file, or couldn't parse it.
        print "Warning! Could not load %s" % (path,)
        raise ImportError
    else:
        return config