fix string formatting for <py2.7