code: def _get_pasteas_data(self, dim, obj):
          
  
          if dim == 0:
              return [[repr(obj)]]
          elif dim == 1:
              return [[repr(o)] for o in obj]
          elif dim == 2:
              return [map(repr, o) for o in obj]
docs: Returns list of lists of obj than has dimensionality dim
  
          Parameters
          ----------
          dim: Integer
          \tDimensionality of obj
          obj: Object
          \tIterable object of dimensionality dim