python test modify