popping elements out of list and tuples