TorCtl doesn't handle quoted passwords
The TorCtl authenticate_password passes the password directly to the control socket without escaping quotes. For more information see... https://trac.torproject.org/projects/tor/ticket/4600
Fixing this should be as simple as uncommenting the hex translation or doing... secret = secret.replace('"', '\"')