import re
test = "D:/ren'py games/re tsukihime/game/Scenario/out9.txt"
results = "D:/ren'py games/re tsukihime/game/Scenario/results.txt"
p = re.compile(r'type_\w+', re.MULTILINE)
#n = str('$ renpy.pause(1.25, hard = True)')
with open(test, mode='r') as openfile:
result = re.findall(p, openfile.read())
with open('out.txt', 'w') as out:
out.write(result)