How I made my own python bot to automate complex games