Implement Priority Scheduling Algorithm In Python