python remove element in list if exists