fixing Python 2 compat string formatting