human
Solve the following python programming problem given the following code:
def _createTempDirectories(rootDir, number, filesPerDir = 4) : 
    def fn(i) : 
        dirName = os.path.join (rootDir, ('t%i' % i)) 
        os.mkdir (dirName) 
        return dirName 
if (number > filesPerDir) : 
        if ((number % filesPerDir) != 0) : 
            return reduce ((lambda x, y : (x + y)), [_createTempDirectories (fn ((i + 1)), (number / filesPerDir), filesPerDir) for i in range ((filesPerDir - 1))], _createTempDirectories (fn (0), ((number % filesPerDir) + (number / filesPerDir)), filesPerDir)) 
else : 
            return reduce ((lambda x, y : (x + y)), [_createTempDirectories (fn ((i + 1)), (i / filesPerDir), filesPerDir) for i in range (filesPerDir)], []) 
else : 
        return [fn (i) for i in xrange (number)] 

    
    

    Fix the buggy line: return reduce ((lambda x, y : (x + y)), [_createTempDirectories (fn ((i + 1)), (i / filesPerDir), filesPerDir) for i in range (filesPerDir)], [])
assistant
#Here is Python code to fix the buggy line: return reduce ((lambda x, y : (x + y)), [_createTempDirectories (fn ((i + 1)), (i / filesPerDir), filesPerDir) for i in range (filesPerDir)], [])
.

return reduce ((lambda x, y : (x + y)), [_createTempDirectories (fn ((i + 1)), (number / filesPerDir), filesPerDir) for i in range (filesPerDir)], [])