def write_outfile(lines_list,
                  filename,
                  writestyle = "x"):
    """
    =================================================================================================
    write_outfile(lines_list, filename, writestyle)
    
    This function is meant to take a list of strings and a filename, then write the strings to the
    file.
    
    =================================================================================================
    Arguments:
    
    lines_list  ->  A list of strings, which will become the liens of the file
    filename    ->  A string containing the name of the output file, and the path if necessary
    writestyle  ->  A string determining how the file should be written. Look at the python
                    function 'open()' for more details.
    
    =================================================================================================
    Returns: None
    
    =================================================================================================
    """
    # This is a basic scheme for writing files. Open the file with writestyle,
    # use the writelines method of files to write the lines, and clsoe the file.
    with open(filename, writestyle) as f:
        f.writelines(lines_list)
        f.close()
    return None