Fix pickle import in Python 3.
Use new-style print function.