This method should create a new object of the same type, replacing fields with values from changes.
builtins/object.__replace__
object.__replace__