Fixed Codec for Python >= 3 < 3.3