fix compatible for python multi version