Queue Implementation In Python