兼容Python3