def header_lines(filename):
    """Read the first five lines of a file and return them as a list of strings."""
    with open(filename, mode='rb') as f:
        return [f.readline().decode().rstrip() for _ in range(5)]