def insertLine(lines):
    lines.insert(0, "Blowin' in the wind\n")
    lines.insert(1, "<NAME>\n")
    lines.append("1962 by <NAME>. Inc.")
    return "".join(lines)
with open('Blowing in the wind.txt', 'r+') as f:
    lines = f.readlines()
    string = insertLine(lines)
    print(string)
    f.seek(0)
    f.write(string)