playing with bytes in python 2 is not a fun game