fix Dict deprecation warnings closes #23