python list pop if not empty