Fix the secureformatter in python 2.6