I guess args.inputPath is set to a string containing the path, so “calling” it won’t work:
inputPath = 'PATH'
inputPath("/")
> TypeError: 'str' object is not callable

What are you trying to do with the args.inputPath there?