#! /usr/bin/env python2 # coding = utf-8 tasks = [ (101, "101"), (101, "101Bis"), (2, "2"), (1, "1"), (0, "0"), (None, "NoPriority") ] ordered_tasks = [ "0", "1", "2", "101", "101Bis", "NoPriority" ] LOGFILE = "/tmp/spoolerlog"