fixed python 2.6 bugs with {} in format strings not being valid.