test python validation