import shlex


def getvars(output):
    """Get a dictionary from the output of crosid."""
    result = {}
    for word in shlex.split(output):
        key, _, value = word.partition("=")
        result[key] = value
    return result