title: Python .JPEG Recognition
body: <p>I was trying to write a program that would grab the ascii or binary behind a .jpeg and find for example the "JFIFHH" to verify thats its really a JPEG
  the simple script i wrote was</p>
  
  <pre><code>    test = open('test.jpeg', 'rb')
  
  data = test.read()
  print(data)
  
  if 'JFIFHH' in data :
      print('FOUND')
  
  elif 'JFIFHH' not in data :     
    print('not found')
  </code></pre>
  
  <p>It always prints not found even if its there.
  so i found out it wasn't the binary it printed but something else, so how can i make this work???</p>