Update update.py

fix for checkout