Fixing warnings. Doing proper base64 encoding for python decoding.