Fix Python 3 bug in demo module
Various polishing of interactive reference doc.
Grammar fix
Merge pull request #5330 from takluyver/interactive-reference-updates

Updates to shell reference doc