trace.py: writeline(), write() methods were added.