For creating / editing, I have tried,
with open(myfile.rtf, 'a') as file:
file.write("{\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard")
file.write(my_String_here)
file.write("\par}")
Unfortunately the file it creates isn't an rtf file.
I can create a simple .txt file using
with open(myfile.txt, 'a') as file:
file.write(my_String_here)
Alternatively, Is there an easy way to convert a .txt to an .rtf?