Looks fine to me.
str == bytes would be more idiomatic as
str is bytes
but its functionally equivalent so shrug :).
Your team Launchpad code reviewers is requested to review the proposed merge of
lp:~cjwatson/python-oops/py3 into lp:python-oops.
Mailing list: https://launchpad.net/~launchpad-reviewers
Post to : firstname.lastname@example.org
Unsubscribe : https://launchpad.net/~launchpad-reviewers
More help : https://help.launchpad.net/ListHelp