If all else fails, you might try a dd from that partition and write it somewhere else (on /mnt/sda1 perhaps?) You can easily recognize that python text among all the binary gibberish and if your original filing system wasn't too fragmented, you'd be able to retrieve your file (or most of it).
kind regards,
Jos