Fix _TestZZZNumberOfObjects for python3 syntax
Fix compile warnings and errors on MSVC
Merge branch 'extesy/master'