Adding and Removing Elements in python