def __bytes__(self) -> bytes:
    'Returns bytes interpretation of data'
    data = self.serialize()
    return ('%s\n' % data).encode('utf8')
Returns bytes interpretation of data
def __bytes__(self) -> bytes:
    
    data = self.serialize()
    return ('%s\n' % data).encode('utf8')