decoding is only valid for pythons less than 3