fix python scripts