Letras de acento de escape python

str escaped = urllib.quote (password, safe = ‘àèéìòù “£’). decode (‘utf-8’). encode (‘latin-1’)
form
data = {‘j username’: username, ‘j password’ : str_escaped}