TIL Python 3.7 datetime class has a method fromisoformat, that lets you convert ISO 8601 date string straight to datetime object.
https://docs.python.org/3/library/datetime.html#datetime.date.fromisoformat
Since toJson method emits dates in this format, this notation is pretty much universal, and in Python 3.7 no imports or custom parsers required to handle it.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toJSON