Something is wrong here. :)
The "case" variable is an instances of a class (first I thought those are functions because they are lowercase). case() should call __call__() method which is not defined in the classes.