title: How can I inject code in python programs so that they can print the conditions inside the if statement?
body: <p>I am looking for a way to instrument (Inject code inside) python programs. 
  For example, if a program hits the <code>if</code> condition <code>x &gt; 2</code>, I want to automatically add a <code>print</code> statement following the <code>if</code> condition which prints to the console <code>x &gt; 2</code>. </p>
  
  <p>The source code of the program is not available.</p>