The program makes heavy use of complex structs; for example, a ‘seriessquare’ is a rather poorly named struct that contains everything relevant for a partially built scaffold. These structs, which really should be classes in Python, quickly get big, slow, and cumbersome. The fitting proceeds...