Codes For Python Update Settings