use json for python 2.7 and up