def read_file(filename, mode='r'):
    """write_file will open a file, "filename" and write content, "content"
       and properly close the file

       Parameters
       ==========
       filename: the name of the file to write to
       mode: the mode to open the file, defaults to read (r)

    """
    with open(filename, mode) as filey:
        content = filey.readlines()
    return content
