Do While Java Queue Operations In Python If You Executed