Merge pull request #335 from KazW/experimental

Add checking to pause/resume functions in printcore.py
[printcore] Switched to use Python if syntax and not Ruby's.