Fix CaselessDict for Python2.6