Alright, I have created an automatic week change algorithm, which I'm gonna experiment with tomorrow morning. It shouldn't insert any errors because it uses the methods from the manual week change, the problem is firing it at the right time (when all tournaments are done with) and keeping the task alive while waiting for them to finish. Also, creating a regular update task after the 8-hours long process is done. That's the tricky part.
This experiment will most likely continue next week, when I'm gonna be missing the weekend till Wednesday, so it has to know how to move on to the next week without me, otherwise it's gonna get stuck on the past week's rankings until I return. I apologize before hand for experimenting on you guys.
The bad part in all of this is that I couldn't finish my auto-synch algorithm, so I must synch with ATP manually. That means that next Monday it won't be doing that, so if there are any ranking errors, they'll have to wait until I return.