added python wrapper for Dirmap class