This collision happened precisely because of unfortunate circumstance that break in the rail and derailment happened just before the switch leading to the opposite track. Without the "help" of the switch, carriages of the first train likely wouldn't have invaded the second track.
I fully agree with that. Just a bit disappointed that Python is not even considering to fix/replace it's problematic datetime library (as far as I know). Excellent third-party library is good, but an excellent standard library is even better!
https://www.json.org/license.html