Automated input?

Hi,

I was thinking of working on AI to play the game, but doing this would require automated games - is there any way to automate input to the game?

Even just a developer console in which one can set the policies and end the turn would be sufficient.

Thanks!