cleanup
byte processing over stdout for python 3