def METHOD_NAME(mol):
    print("separate RGroups: ")
    for rg in mol.iterateRGroups():
        print("RGROUP # %d" % (rg.index()))
        if rg.iterateRGroupFragments().hasNext():
            print(rg.iterateRGroupFragments().next().molfile())
        else:
            print("NO FRAGMENT")