fix password and redis session when switch between py2/3