Changes a list.remove(0) to list.pop(0)