How to change a sublist for another in python?