Called by bytes to compute a byte-string representation of an object. This should return a bytes object. The object class itself does not provide this method.
builtins/object.__bytes__
object.__bytes__