python: annotate all calls into libnotmuch with types