python remove element from list if exists