Chess::Rep in Python

If you want to run the sample, you can download both here: chesstest.tar.bz2. Unpack and run test.py or test.pl in the Python or Perl subdirectories. They both parse a large (1.4MB) file containing lots of Chess games. In my tests, the Python version takes around 5.5 minutes, while the Perl version takes like 11 minutes. If you have any optimization ideas, please let me know.

Of course, feel free to use this code under the same terms as, err, Python itself. ;-) It's pretty useful. Note that it's not a PGN parser in itself. See the documentation of the Perl module for details.