Fix a bug that they doesn't work with python3