def listify(dct, key):
    """Make sure a key in this dct is a list"""
    if key not in dct:
        dct[key] = []
    elif not isinstance(dct[key], list):
        dct[key] = [dct[key]]
    return dct[key]
