[#1078] inherit from dict to pass some isinstance checks
[#1078] pep8
[#1078] in my own defense