Closure Function Example In Python