Dynamically generate the queries to load a partitioned store_sales table...

....
Alan, I haven't tested it on python2.4 (which the shell is compatible with).