Closures and Decorators in Python