Python Object Creation From Config Validation