Converting REFTEK to miniseed

Hi, I am new to obspy. Thank you for the wonderful tutorials and feedbacks.
I have reftek data arranged in station day files and want to convert to miniseed, can anyone assist?

Read data into a stream object and write as MiniSEED. Depending on how you need your output organized (daily files etc.) there might be some cosmetics to put in the code.