add substrate.py: create substrate network components