[python/cli] add some error handling to the shell
[python/applist] make __getitem__ actually work