adds an import for os.path.exists. Exists is preffered to isFile as it checks for directories as well.