Obtain Queue Function In Python Definition Range