python3: fix some syntax errors

partial: https://github.com/vmware/pyvmomi/issues/55