Python Persistent Variable In Function Sql W3schools