update samples for python3

Small changes related to python 3 compatability.

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