updates for python-3.3 changes bytes to unicode