Add ipython 1.x support
PEP8 source code formating