I also have seen this issue and when I changed the code to run "account.get('password')" letting it be set to None, the call to connect failed.
I also have seen this issue and when I changed the code to run "account. get('password' )" letting it be set to None, the call to connect failed.