You'll need to adjust this call for Python 3.x. I committed a solution yesterday in 28d338497057454f500367ff440ad9d690beccca using bytearray() that will work.