[enh] syntax highlight output if run from ipython
[mod] remove useless import