def formatSetting(self, setting): t = setting for (k, v) in t.items(): if v in ['true','false']: t[k] = Util.strToBool(v) return t