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
Minor fixes in policy module

Change-Id: Ibcf4e734a3d36b04266fae9b6d18cf3b10c4537a
Merge "Use list.pop(0) to keep the code simpler"
Merge "Minor fixes in policy module"