Use insert() instead of extend()