Add ipython 1.x support
PEP8 source code formating
Merge pull request #3 from mazurov/master

Add ipython 1.x support