binman: Handle repeated bytes for Python 3