def METHOD_NAME(mol, offset):
    count = mol.countAttachmentPoints()
    print("%s Number of attachment points: %s" % (offset, count))
    for order in range(1, count + 1):
        for a in mol.iterateAttachmentPoints(order):
            print("%s   Index: %d. Order %d" % (offset, a.index(), order))