def synchronize(*klasses):
 if (threadingmodule is not None):
  for klass in klasses:
   for methodName in klass.synchronized:
    sync = _sync(klass, klass.__dict__[methodName])
    setattr(klass, methodName, sync)

def synchronize ( * klasses ) : if ( threadingmodule is not None ) : for klass in klasses : for methodName in klass . synchronized : sync = _sync ( klass , klass . __dict__ [ methodName ] ) setattr ( klass , methodName , sync )
just the right side part of leftjoin() .