title: More pythonic way of skipping header lines
body: <p>Is there a shorter (perhaps more pythonic) way of opening a text file and reading past the lines that start with a comment character?</p>
  
  <p>In other words, a neater way of doing this</p>
  
  <pre><code>fin = open("data.txt")
  line = fin.readline()
  while line.startswith("#"):
      line = fin.readline()
  </code></pre>