Turns out there is a pylint option for ignoring duplicated imports.