script to generate csv list of courts