STY: PEP8 fixes.
BLD: Flake8 ignore undedinfed name because of get_ipython()