title: what is the valid format for a tiff image in python
body: <p>How do I write a valid tiff image in python with my own data for the tiff file?</p>
  
  <p>I've tried doing a few things using PIL and it's not a valid image.</p>
  
  <p>If you could answer with some sample code of making a tiff image then editing the data using PIL that would be more than enough and go a long way in moving my program along</p>