mkdir -p
fix pdb_on_signal, add a helpful comment
add pdb excepthook and some helpful docstrings