old_contents: #!/usr/bin/env python
  '''
    Author: Dawson Botsford
    Purpose: Fork, edit, and pull request conservative
    spelling suggestions from a GitHub repo's readme
    Date: Fri Dec 19, 2014
  
  '''
  
  import re
  import enchant
  import urllib2
  from github import Github
  import base64
  
  wordDict = {}
  checker = enchant.Dict("en_US")
  
  #Create Github object
  fp = open("../keys.txt")
  USERNAME = fp.readline().rstrip() # put your github username here.
  PASSWORD = fp.readline().rstrip() # put your github password here.
  obj = Github(USERNAME, PASSWORD)
  
  myrepo = obj.get_user().get_repo("mispell")
  myfork = obj.get_user().create_fork(myrepo)
  myString = base64.standard_b64decode(myfork.get_readme().content)
  
  with open("words.txt") as f:
    for line in f:
      (key, value) = line.split("->")
      wordDict[key] = value.rstrip()
  
  print "These are the contents in your README of interest:\n"
  #myString = urllib2.urlopen("https://raw.githubusercontent.com/dawsonbotsford/mispell/master/README.md").read()
  
  print myString
  splitUp = re.compile('\w+').findall(myString)
  
  for word in splitUp:
    if (not checker.check(word)):
      #print word, " is wrong. How about ", checker.suggest(word)[0], "?"
      #Only replace if the replacement is found within words.txt
      if (word in wordDict):
        myString = re.sub(word, wordDict[word], myString)
   
  print myString 
  
new_contents: #!/usr/bin/env python
  '''
    Author: Dawson Botsford
    Purpose: Fork, edit, and pull request conservative
    spelling suggestions from a GitHub repo's readme
    Date: Fri Dec 19, 2014
  
  '''
  
  import re
  import enchant
  import urllib2
  from github import Github
  import base64
  
  wordDict = {}
  checker = enchant.Dict("en_US")
  
  #Create Github object
  fp = open("../keys.txt")
  USERNAME = fp.readline().rstrip() # put your github username here.
  PASSWORD = fp.readline().rstrip() # put your github password here.
  obj = Github(USERNAME, PASSWORD)
  
  #Fork the repo of interest
  myrepo = obj.get_user().get_repo("mispell")
  myfork = obj.get_user().create_fork(myrepo)
  myString = base64.standard_b64decode(myfork.get_readme().content)
  
  with open("words.txt") as f:
    for line in f:
      (key, value) = line.split("->")
      wordDict[key] = value.rstrip()
  
  print "These are the contents in your README of interest:\n"
  #myString = urllib2.urlopen("https://raw.githubusercontent.com/dawsonbotsford/mispell/master/README.md").read()
  
  print myString
  splitUp = re.compile('\w+').findall(myString)
  
  for word in splitUp:
    if (not checker.check(word)):
      #print word, " is wrong. How about ", checker.suggest(word)[0], "?"
      #Only replace if the replacement is found within words.txt
      if (word in wordDict):
        myString = re.sub(word, wordDict[word], myString)
   
  print myString 
  
subject: Improve commenting