First of all, I need some clarification on the problem statement you uploaded in the PDF file. Also, I am not proficient in Python, but an expert in MATLAB. If that works, then I would be definitely willing to try it out. Please let me know if you are interested in talking details over in chat.
Thanks.