Fix #60 and add Python3 compatibility

These changes fix the import error if IPython is not installed and add Python3 compatibilty to setup.py and __init__.py.
These changes were not checked againt Python 2.x!