Porting to Python 3. plaintext_request still not working.