script to export court data to s3