Cleaned update.py