Creating price maps by scripting

Hi folks,

Does anyone have a script which enables them to create a price map by scripting?  In our setup, we have (rather awkwardly) some price maps that will require 118 price types.  I'd rather not have to do this manually.

Martin