def remove_atom_maps(mol):
    """
    Iterates through the atoms in a Mol object and removes atom maps

    Parameters:
        mol (rdkit.Mol): Rdkit Mol Object

    Returns:
        mol (rdkit.Mol): Rdkit Mol Object without atom maps or 'nan' if error
    """
    try:
        for atom in mol.GetAtoms():
            atom.SetAtomMapNum(0)
        return mol
    except:
        return float('nan')