Queue Function In Python With Parameters