Using List As Queue In Python Program