compatibility with python 3.x

print using brackets
Merge pull request #169 from ivantchomgue/patch-5

compatibility with python 3.x