Make nbformat.(read|write) accept file-like object or path
Fix opening file on Python 2
Merge pull request #7117 from takluyver/nbformat-rw-path

Make nbformat.(read|write) accept file-like object or path