Why am I getting a TypeError: 'str' object is not callable