Python: 编码识别