Merge pull request #19 from shalakhin/python3

ported to python 3
Added VERSION back in
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