Replace list extend method with += operator