sibling issue to https://github.com/clamsproject/mmif-python/issues/370 (pytype is sunsetting, we need an alternative)