Start using logging module to report errors
Make warning translatable
Missing import
Return [line.raw] instead of line.raw in split_raw