fix visit python script