python program to implement queue using list