title: writing information to a .txt file and getting None as my result
body: <p>I am having trouble writing files to .txt files for a school project. I have included all my code for the project for reference. Any input would be greatly appreciated, but please make the input understandable to a beginner in python. </p>
  
  <pre><code>def first_letter_count(word, letter):
      for  number in word:
          if number[:1] in letter:
              return True
          else:
              return False
  
  def check(letter):
      letter_count = 0
      fin = open('words.txt')
      for line in fin:
          word = line.strip()
          if first_letter_count(word, letter):
              letter_count += 1
      print str(letter) + ": " + str(letter_count) 
  
  
  alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
  oldstdout = sys.stdout
  newfile = open('words_writing.txt', 'w')
  for letter in alphabet:
      newfile.write(str(check(letter)))
  newfile.close()
  newfile2 = open('words_writing.txt', 'r')
  </code></pre>