moved to Python >3.2

much more intuitive conversion between integers and bytes