import itertools


def permutate_lists(list_of_lists):
  """
  [[1,2,3],[4],[5,6]] => [[1,4,5], [1,4,6], [2,4,5], [2,4,6], [3,4,5], [3,4,6]]
  Permutate
  :param list_of_lists: List of lists
  :return: Each member of a list permutated with each other member of other lists
  """
  if list_of_lists is None:
    return None
  return map(list, itertools.product(*list_of_lists))