Python: added method for getting name of command.
Merge pull request #271 from shaitan/python

Python: added method for getting name of command.