Most Pool classes should allow poolsize None to make a large pool (typically ~ncpu). Defining the size of tilespec partitions based on an integer poolsize makes this None value fail with a TypeError. It would be good to get this number from the generated pool or have a default, e.g. 1 or ncpu-1.