Deferral is like a promise to return the result in the future. You really should read the Deferreds documentation here and here . In addition, you should read about Python decorators in general. One introduction here .
, , getProcessOutput(), . . , , : , , , , . ( ) getProcessOutput , . , , , . , .