Update printcore.py

Update to new version.