Fixed compilation problem when Python >= 2.7