title: adding parameter to python callback
body: <p>I am a beginner in Python, and I would like to add a parameter to a callback, in addition to the self and the event.
  I have tried with lambda, but without success.<br>
  My code at the moment looks like this :</p>
  
  <pre><code>control = monitor(block, callback=self.model)  
  </code></pre>
  
  <p>And my model is :  </p>
  
  <pre><code>def model(self, transaction)
  </code></pre>
  
  <p>I would like to have :  </p>
  
  <pre><code>def model(self, file, transaction)   
  </code></pre>
  
  <p>file being a string parameter I would like to pass to my "model"
  I tried by changing the control line in :  </p>
  
  <pre><code>control = monitor(block, lambda transaction, args=args:    callback=self.model(transaction, args)  
  </code></pre>
  
  <p>but this does not work, and it is getting too advanced but my python knowledge.<br>
  I get the following Error : "SyntaxError: lambda cannot contain assignment", I guess because of the = symbol.</p>
  
  <p>Could you help me by explaining how I should proceed/what I am doing wrong ?</p>