Hi there!!
I've read through your project description to understand your requirements. So, you wish to rectify your existing python script to make it wok again. You didn't mention whether the script is built upon any browser simulator or xhr. Either way I can fix it or create anew to let you achieve what you are after. Once we agree to go on, I'll start working in your project in order to be able to provide you with a modified script capable of producing a data-ridden csv file.
If I have an opportunity to work on your project, you can rest assured I'll get your job done in a day. Your invitation over a private chat would be highly appreciated.
Regards,
Md. Shahin Iqbal