Instead of `data = bytes()` do `data = b''`, since that seems more natural.