Just FYI, none the API doesn't function unless you include the following, hope it saves someone some time!
default_reasons = {
0: "leaves on the track",
1: "vandalism",
2: "drunk chavs",
3: "driver being absolutely shitfaced",
4: "solar flares",
5: "transport police randomly deciding to stop and search everyone on board",
6: "you having an interview",
7: "a possible UFO sighting in Belgium",
8: "British Rail",
9: "lack of coffee at the previous station, so the driver has just nipped off to get some",
10: "leaves on the track",
11: "flooding within 300km of a railway sleeper"
}
delay_all_trains_by_minutes = 5
if date.today().day % 2 == 1:
delay_all_trains_by_minutes = random.randrange(1,30,1)
print 'All trains will be delayed by %d minutes(s) due to %s' % \
(delay_all_trains_by_minutes, default_reasons[random.randrange(0,len(default_reasons),1)])