Classes for System Diagram description in Python