A callback function in bokeh usually has three arguments: attr, old, and new as shown in this example in the documentation
attr
old
new