remove element if exists in list python