Queue Function In Python Example