Fetch JSON from a real local HTTP server

You have practised reading a saved web response in Coding Studio. In this lab,
the same kind of data comes from an HTTP connection. It works without internet.
The standard Python installation includes the HTTP server and HTTP client.

1. Open two terminals in this folder. In the first, run:
   python3 -m http.server 8000 --bind 127.0.0.1
2. In the second, run:
   python3 fetch_workshops.py
   Expect "Source: live" and two open workshops.
3. Press Ctrl+C in the first terminal and run the tool again.
   Expect "Source: saved" and one open workshop.
4. Change one status to "closed" in workshops.json, start the server again, and
   predict the result before running the tool.
5. Try python3 fetch_workshops.py --timeout 1 and read the help with --help.

On Windows, use py, or use python if that is the command from your setup lesson.
If port 8000 is in use, start the server on 8001. Then run this in the second
terminal (use your Python command):
   python3 fetch_workshops.py --url http://127.0.0.1:8001/workshops.json
The server shares this folder only with your own computer. Keep private files in
another folder and stop the practice server before you leave it. When adapting
the tool, use a public or approved data source and follow its access rules.

What the code does
urlopen opens an HTTP connection and raises an error on an unsuccessful response.
read takes at most 32 KiB plus one byte so the tool can detect an oversized reply.
json.loads turns response bytes into Python data. The validation step checks that
the data has the expected fields. If reading or validating fails, the tool tries
the saved file and says where the result came from.
