compatibility with python 3.x

print using brackets
Merge pull request #172 from ivantchomgue/patch-8

compatibility with python 3.x