Change string format to new-style

For Python 3 compatibility