Major changes:
- Create a base class for Task, Process, and Thread, and define pretty_dict().
- Rename data to tasks.
- Use namedtuple for Label.