implementation of dmap(s)? in c++ and python