use a dict to have keyword access

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>