Maybe I'm used to javascript, but you could pass a dict of options and simply set that on `self`.