Queue Implementation Using Python