I got it working!
I think the problem was
input_number.set_value
was changed to:
number.set_value
Thanks