Update driver.py

bug fix