Use print function syntax, in examples
Use dict.keys & items instead of iterkeys & iteritems

for python 3.3 compatibility.
Merge pull request #363 from nusolar/master

Fix print syntax in examples & utils