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

....
I think this is only supported on Python 2.7+. Can you change the format arg to use '%s' or {0}?