Perfect, that's what I was looking for. Can you write a short python program to perform this transformation on .txt files?