Hack your shell, in Python.