Python Persistent Variable In Function On Calculator