Cast `dict_types` as `list` for Python 3 compatibility, support for Python 3.4