hmm its not clear what has caused the python traceback, to me this looks like a coding issue, so it could well be a deluge 2.x bug, check the value of "peer_client" in the core.conf file (if it exists?). the above is interesting, looks like PIA had issues authenticating you, my code then retries and successfully established the tunnel, so this must of been a temporary blip.