replace isinstance(...,dict) checks with Mapping

see #76

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Merge pull request #77 from erikb85/master

replace isinstance(...,dict) checks with Mapping