Python script to fetch data from a peculiarly formatted plaintext file.