Better ipython magic command