[printcore] Switched to use Python if syntax and not Ruby's.
Switched to using "not" instead of ! modifier.
Merge pull request #336 from KazW/experimental

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