Raise TypeError when an object without __call__ attribute is called