duck typing anything dict-like (for example psycopg's RowDict) like a dict.