'Check whether the current parameter object should be flattened.
:param str param: The parameter name with complete namespace.
:returns: bool'

def _should_flatten(self, param):

    return ((param.count('.') < self.flatten) and (param not in self.ignore))
