Python based rota generator