Persistent Variable In Python Def