Fix runtime python script errors.