How to remove a sublist in python?