WIP Better exceptions

Validate unique keys in Python