tkinter function to wrap text
convert tab or 4 spaces indentation to 2 spaces