To implement round robin sheduling in python