More python fixes
Trip whitespace from base64 strings