simple python class that merges dictionary and object APIs