Convert Json Object To String In Python Function