Python Create Json Object And String To Base64 Python