Fix some problems specific to Python 3.2.