python3: unittest define main

Code change to unit tests for python3.

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