def markdown_texify(file_in, file_out):
    markdown = open(file_in).read()
    latex = parse_markdown(markdown)
    result = open(file_out, 'w').write(latex)
    print(('Finished, %i characters written to %s' % (result, file_out)))
def markdown_texify(file_in, file_out):
    markdown = open(file_in).read()
    latex = parse_markdown(markdown)
    result = open(file_out, 'w').write(latex)
    print(('Finished, %i characters written to %s' % (result, file_out)))