Using List As Queue In Python