Python 3 compatibility fixes for examples
Backed out 6f2b203a0f97
Python 3 compatibility fixes for examples
Python 3 compatibility fixes