Fixed some test failures with Python 3.2. Many of the IO tests are now skipped when using Python 3 (although we should return to these IO modules and try to make them Python 3 compatible).