type-checked dictionary templating library for python