#part one import speling def readfile(file): """Read file and return it""" file = open(file) return file def parsefile(file): """Parse file and return the parsed file""" parsed = file.split() return parsed def checkdocspelling(doc): """Check the documents spelling""" doc = parsefile(readfile(doc)) spellChkText(doc) return