[printcore] Switched to use Python if syntax and not Ruby's.

Fix for my last pull request. (adding status checking to pause/resume in printcore.py)