Compute gender breakdown and clean up script