Calculate Indigo fingerprint similarity

def fingerprint_similarity(mol1, mol2):
    """Calculate Indigo fingerprint similarity
    """
    idmol1 = to_real_mol(mol1)
    idmol2 = to_real_mol(mol2)
    fp1 = idmol1.fingerprint("sim")
    fp2 = idmol2.fingerprint("sim")
    return round(idg.similarity(fp1, fp2, "tanimoto"), 2)