def atoms_to_xyz_file(atoms, filename, title_line='', append=False):
    """
    Print a standard .xyz file from a list of atoms

    Arguments:
        atoms (list(autode.atoms.Atom)): List of autode atoms to print
        filename (str): Name of the file (with .xyz extension)

    Keyword Arguments:
        title_line (str): Second line of the xyz file, can be blank
        append (bool): Do or don't append to this file. With append=False
                       filename will be overwritten if it already exists
    """
    assert atoms is not None
    assert filename.endswith('.xyz')

    with open(filename, 'a' if append else 'w') as xyz_file:
        print(len(atoms), title_line, sep='\n', file=xyz_file)

        for atom in atoms:
            x, y, z = atom.coord
            print(f'{atom.label:<3}{x:^10.5f}{y:^10.5f}{z:^10.5f}',
                  file=xyz_file)
    return None