print(): Switch from statement to funtion.
Fix octal literals.
Use io module instead of file.
Use int division `//` insted of float division `/`.
Make next methods available as __next__.
Use assertEqual rather than assertEquals as the latter is deprecated.
Use for loop instead of map when not iterating.

In PY3, map returns an iterator, so the funcion never gets called.
Correctly handle binascii.Error.
In Protocol.read_pkt_line, assert the length of the data read matches the length prefix.
Fix unclosed file ResourceWarnings.
Check for bytes rather than str.
Use bytes literals instead of string literals.
Use 2to3 in setup.py.
Change itertools import style so that it is corrected by 2to3
Hack to prevent 2to3 from changing this.
Run 2to3.