Removed some nonsensical spaghetti from update.py