fix Dict deprecation warnings closes #38