def command(self, fn):
self.commands[fn.__name__] = fn<EOL>return fn<EOL>
Add method or function to dispatcher. Can be use as a nice
decorator.

:param fn: function or method
:type fn: function
:return: the same function
:rtype: function