Python Persistent Variable In Function Create