Getting close _shell_code.py

- Alphabetical imports
- docstring for _chomp()'s purpose