def _kaitai_repr(self):
    _repr_list = []
    for item in vars(self):
        if not item.startswith('_'):
            _r = getattr(self, item)
            if type(_r) in (int, float, str, bytes, bool):
                _repr_list.append("=".join((item, _r.__repr__())))
            else:
                _repr_list.append(item)
    return "<" + self.__class__.__name__ + " |" + ", ".join(_repr_list) + ">"