How to change the value of a sublist in python?