A Python library for defining struct-like classes