PY-13140 Fix several minor issues found during code review
revert 43b0575239264eef2d4a5299b48f3d2119d8d380
added comment
notnull