Update loop_csv.py

Goes through a CSV files and generates multiple CSV files sorted by a determined parameter.