compatibility with python 3.x

print using brackets
Merge pull request #170 from ivantchomgue/patch-6

compatibility with python 3.x