NEWS entry for python3 changes.
Check for bytes rather than str.
Use bytes literals instead of string literals.