Python Json String Replace Function