How to convert Python dict to class object with fields

Updated post here: https://codeyarns.github.io/tech/2017-02-27-how-to-convert-python-dict-to-class-object-with-fields.html