Support Python 3

This library works with Python 3 if the print syntax is fixed.