BUG: fix IPython local=True issues

This fixes some of the issues discussed in #130.