Print formatting for older python versions