compatibility with python 3.x

print using brackets
Merge pull request #171 from ivantchomgue/patch-7

compatibility with python 3.x