Used named argument to avoid TypeError: __call__() takes exactly 1 argument (2 given)