title: Python Print Output to Email
body: <p>I have a script which prints variables (set by user) perfectly.</p>
  
  <pre><code>os.system('clear')
  
  print "Motion Detection Started"
  print "------------------------"
  print "Pixel Threshold (How much)   = " + str(threshold)
  print "Sensitivity (changed Pixels) = " + str(sensitivity)
  print "File Path for Image Save     = " + filepath
  print "---------- Motion Capture File Activity --------------" 
  </code></pre>
  
  <p>I now wish to email this code to myself to confirm when running. I have included in the script email using <code>email.mimieText</code> and <code>multipart</code>. But the output no longer shows the relative variables just the code.</p>
  
  <pre><code>    body =  """ Motion Detection Started \n Pixel Threshold (How much)   = " + str(threshold) \n    Sensitivity (changed Pixels) = " + str(sensitivity) \n File Path for Image Save     = " + filepath """
  </code></pre>
  
  <p>Im sure it is the """ wrapper but unclear what i should use instead?</p>