def read_file(filename):
    """
    Read whole file to list of stripped strings
    :param filename: filepath
    :return: list of strings
    """
    with open(filename) as f:
        lines = f.readlines()
    return map(str.rstrip, lines)