code: def roundlist (inlist,digits):
      
      if type(inlist[0]) in [IntType, FloatType]:
          inlist = [inlist]
      l = inlist*1
      for i in range(len(l)):
          for j in range(len(l[i])):
              if type(l[i][j])==FloatType:
                  l[i][j] = round(l[i][j],digits)
      return l
docs: Goes through each element in a 1D or 2D inlist, and applies the following
  function to all elements of FloatType ... round(element,digits).
  
  Usage:   roundlist(inlist,digits)
  Returns: list with rounded floats