def check_mol_only_has_atoms(mol, accept_atom_list):
    """Checks if rdkit.Mol only contains atoms from accept_atom_list."""
    atom_symbol_list = [atom.GetSymbol() for atom in mol.GetAtoms()]
    return all(atom in accept_atom_list for atom in atom_symbol_list)