How To Replace Elements In A List In Python