Obtain Queue Function In Python Definition