some code quality cleanup.

do to some report of static analysis tool, unused variable (mainly that)
a few function re-declarations, a python2 print statement...

cf https://www.codacy.com/public/bussonniermatthias/ipython/issues
Ah, way, no, it's not parsed as a `print` ! It is parsed a right but shift on `print` and `stderr` !