The function was expecting a one-element tuple as an argument. To specify a one-element tuple unambiguously in Python, you need parentheses:
tuple_containing_only_zero = (0,) # note the comma!
The comma is the actual constructor for the tuple in Python, so you can specify longer tuples without the need for parentheses:
>>> longer_tuple = 1, 2, 3, 4, 5
>>> longer_tuple
(1, 2, 3, 4, 5)
but if you're calling a function:
f(x, y,) # is y a 1-tuple or a SyntaxError?
one-tuples without parens would be ugly and ambiguous.