code: def parallelize(func, result, processes=None, partition_size=None):
      
      parallel_iter = lazy_parallelize(
          func, result, processes=processes, partition_size=partition_size)
      return chain.from_iterable(parallel_iter)
docs: Creates an iterable which is lazily computed in parallel from applying func on result
      :param func: Function to apply
      :param result: Data to apply to
      :param processes: Number of processes to use in parallel
      :param partition_size: Size of partitions for each parallel process
      :return: Iterable of applying func on result