def __iadd__(self, value):
    if isinstance(value, (int, float)):
        return type(self)((self.x + value), (self.y + value), (self.z + value))
    return super(Vector, self).__iadd__(value)
def __iadd__(self, value):
    if isinstance(value, (int, float)):
        return type(self)((self.x + value), (self.y + value), (self.z + value))
    return super(Vector, self).__iadd__(value)