def print_string_to_file(filename, string_contents):
    """
    This is a helper method to write the contents of a string into a file.
    Parameters:

    filename -- The name of the file to write the string into
    string_contents -- The string that will be written
    """
    with open(filename, 'w') as file_handle:
        file_handle.write(string_contents)
