fix issue #26 and use pysec.core.Dict