Update The Dictionary In Python Code