Fix config (test and code) on python 3
Add support for SQLA-mapping with UUIDs as primary key
Fix `_resolve_id()` for python 3
Improve test coverage