Dispatch Table example in Python2.7