made dprint work in python shell.  Added assertd, which starts pdb
instead of exiting.