[python] TypeError: 'list' object is not callable while trying to access a list