Move ipython importing to separte mod

- this allows for avoiding std stream/fd errors raised by ip if -s is not
  passed to py.test