human
Complete this python program:
def Synchronized(f):
assistant
#Here is the Python program you requested.

    """Synchronization decorator.
    """
    @functools.wraps(f)
    def NewFunction(self, *args, **kw):
        with self.lock:
            return f(self, *args, **kw)
    return NewFunction