update py and test