Fix compatibility with py32.