fix building race, add python depend.