Py3 support

This makes the *local* nbdiff python3 compatible (hopefully).

@r-gaia-cs @asmeurer