Redshift Decode Base64 Python Encode Function