bno_plot.py: Use `with open() as ...` context manager to automatically handle close()