py3: make dummyssh compatible with Python 3
Required encoding a str to bytes and writing bytes to a file
descriptor.
Differential Revision: https://phab.mercurial-scm.org/D2170
public attributes not in abstract interface: badpeer.badattributepublic attributes not in abstract interface: badpeer.badmethod