FIX write_annot:  take into account numpy __contains__ behavior