for item in soup.findAll(['hgroup','deresponsabilizzazione','per']): item.name = 'div' item.attrs = []