Checked for file being done by file_exist rather than os.path.exists.
Whitespace to conform to pep8 standard.