def reformat_input(files, sep=' '):
    """files, a list of files or a string of many files
    each seperated by a space
    """
    if isinstance(files, str):
        files = files.split(' ')
    out = sep.join(files)
    return '"{}"'.format(out)
