fix python random seed problem in dev branch