various fixes detected by or related to pytype

Merge request reports

Loading