This was a stupid post and I don't know how to post correctly on StackOverflow. Please delete this post at the nearest oppurtunity.
f is an
float, not a function. You can't call it.
As you tried to call it
f(a, b), you had the error:
TypeError: 'int' object is not callable
You should simply return
f to avoid this.