James,
Wow, that's a great script - I'm impressed with your programming skills!
I'm not sure if I understand how I can use the data that your script generates. I currently use eBay's system on the Sell Your Item page, where I enter the item I'm selling, and then eBay shows me the categories that other sellers use who sell the same type of item, and the percentage in each category.
--Mindy