Fixes for Python 3.x.

Also fixed a bug with adjusting drawn games.