Create From sorted to two separate files for frequencies and years (art history)

I will expand upon this script:
- make it so that it works for all .json files ((sub)categories), by being able to specify a file in advance.
- Remove the files that are unnecessary afterwards, like in this case art_history_pubdates.csv and art_history_frequencies_years.csv