Change order in input files. Python script to download data from LAMDA