Use list.pop(0) to keep the code simpler

Use "x = list.pop(0)" instead of "x = list[0]; del list[0]" to keep the code simpler.

Change-Id: I47b8c8d71287eb4a37fb72ab8a179bd0b71cc2ad
Merge "Use list.pop(0) to keep the code simpler"