fix python-validation