Add support for different ipython prompts

Fixes #141