def names_from_file(filename):
    """Takes filenames from the content of a file (removes spaces and end-of-lines, no comment allowed)"""
    with open(filename) as f:
        item_list = [name for name in f.read().split() if name]
    return item_list