Make piprot work with Python 3.

I've made piprot (great tool btw :)) work with Python 3.

Necessary changes were:
- using print() instead of the print statement
- StringIO has moved to io.StringIO

I've tested this branch with 2.7 and 3.3.