Use dict.items() instead of dict.iteritems().

iteritems was removed in Python 3.
Convert assembler value to bytes when checking if done.

potr.proto.OTRTAG is bytes and must be converted to be passed to
startswith on Python 3.