Fix json issue with py2.4