if header is None:
header = etree.fromstring(data).find('.//{http://nowoczesnapolska.org.pl/sst#}header')
metadata['title'] = getattr(header, 'text', ' ') or ' '
if header is None:
header = etree.fromstring(data).find('.//{http://nowoczesnapolska.org.pl/sst#}header')
metadata['title'] = getattr(header, 'text', ' ') or ' '