added top2string.py