WriteGame() for python: support for AGGs