Fixed Python 3.1 incompatibility issues.
4 files changed