ssh-publickeyd: rewrite 'sshproto' as a stream class, port to Python 3