What you are trying to do seems possible. But would be complex if you are novices for TC , Python.
Automate testing involves testing, programming and project management.
First you have to break down complex task to manageable small chunks depending on what you have what you need and your skills and your application (project management). Which we cannot help that much.
But after that when you have specific questions (programming) we will able to help.
Also if you have questions on best approach in particular situation (Testing) the forum could guide you.