use (id, title) instead of line.split('|')[0:2]