def _add_item(self, geom):
    try:
        fun_name = 'self._add_{}'.format(geom._type)
        eval(fun_name)(geom)
    except:
        self._add_obj(geom)
def _add_item(self, geom):
    try:
        fun_name = 'self._add_{}'.format(geom._type)
        eval(fun_name)(geom)
    except:
        self._add_obj(geom)