improvements to the code running examples. Fixes and improvements on python2/3 compatibility
fixes after running examples
convert examples to use 4 spaces instead of 2 spaces
Merge pull request #1 from shalakhin/python3

Python3