Added an auto-generator for schemas.py

Re-implemented a schema creator, applier and validator (mani).
Added a generated schemas.py
Switched API behaviour to mani.