Declarative dictionary-based model classes for Python