You can do this through the game console (NOT Python console).
Hit ` with the cheat code set and then enter:
x being the number of turns you want the game to run for. The AI will then play against itself for that number of turns. Note that it will kill off the civ you currently are playing so there might be a gap in the landmass where you started.