fix backward `f, nb` args for nbformat.write