fixed py2.6 compatibility for formatted strings