python: more test fixes
python: more test fixes

tgunr/factor,factor/factor,tgunr/factor,mrjbq7/factor,tgunr/factor,mrjbq7/factor,factor/factor,factor/factor,factor/factor,tgunr/factor,tgunr/factor,tgunr/factor,mrjbq7/factor,factor/factor,mrjbq7/factor,mrjbq7/factor,factor/factor,mrjbq7/factor