(path, message): with open(path, 'wb') as f: f.write('\n'.join([ '', '', '', ' ', '', '', ' {}'.format(message), '', '