shell.py first version
some fixes