def run(filename): with open ("data/" + filename, "r") as f: inpu = f.read() m = Markov(inpu) m.debug()