in documentation on annot.setName :
"If you set ..... fitz.getTextLength(text, fontname="tiro", fontsize=20) / annot.rect.width <= 0.85."
but in fitz code is fitz.getTextLength don't exist, the implemented function is fitz.getTextlength ("l" from length is not capitalized)