def copy_all_lines_from_to(inputFile, outputFile):
    currentLine = inputFile.readline()
    while currentLine:
        outputFile.write(currentLine)
        currentLine = inputFile.readline()
:reference: https://dev.twitter.com/rest/reference/get/direct_messages/show
dataset/ETHPy150Open sosy-lab/benchexec/benchexec/util.py/copy_all_lines_from_to--crossover with--dataset/ETHPy150Open tweepy/tweepy/tweepy/api.py/API.get_direct_message