Return dicts instead of classes,
this makes require.js more Python import like.