how to append new data onto a new line,hs.write('{}\n'.format(name))