def _make_file(elements, fp):
 with open(fp, 'w') as f:
  f.write('\n'.join(elements))
 return fp

def _make_file ( elements , fp ) : with open ( fp , 'w' ) as f : f . write ( '\n' . join ( elements ) ) return fp
create a file with one element per line this function is just a helper for create_commands_slf .