compatibility with python 3.x

print using brackets
Merge pull request #168 from ivantchomgue/patch-4

compatibility with python 3.x