def read_story_file(filename):
    """read story file, return three lists, one of titles, one of keywords, one of stories"""
    title_list, kw_list, story_list = [], [], []
    with open(filename, 'r') as infile:
        for line in infile:
            title, rest = line.strip().split('<EOT>')
            kw, story = rest.split('<EOL>')
            title_list.append(title)
            kw_list.append(kw)
            story_list.append(story)
    return title_list, kw_list, story_list