This is a python script that you can use to export all views as a CSV and all files from the grids.
The only library you need is the requests, then you can call the function "export_all_files" with arguments apikey and the path where you wish to export your files.