Python 3 compat (prints converted to functions)

Tested with Python 2.7.5 and 3.3.2
Merge pull request #2 from x3ro/py3compat

Python 3 compat (prints converted to functions)