just add 'PLAIN' auth mech to the authenticate() method call:
client.authenticate(username, password, mechanism='PLAIN')
just add 'PLAIN' auth mech to the authenticate() method call:
client. authenticate( username, password, mechanism='PLAIN')