title: How to find null byte in a string in Python?
body: <p>I'm having an issue parsing data after reading a file. What I'm doing is reading a binary file in and need to create a list of attributes from the read file all of the data in the file is terminated with a null byte. What I'm trying to do is find every instance of a null byte terminated attribute.</p>
  
  <p>Essentially taking a string like</p>
  
  <pre class="lang-none prettyprint-override"><code>Health\x00experience\x00charactername\x00
  </code></pre>
  
  <p>and storing it in a list.</p>
  
  <p>The real issue is I need to keep the null bytes in tact, I just need to be able to find each instance of a null byte and store the data that precedes it. </p>