moved shell to own class and used cmd class like mininet

This change allows to use pythons cmd features. The cli example has to be renamed to shell to resolve name conflicts in python