I got an error while modifying the code. What I did was to replace all the contents of ogm.py and ogm_map.py with dgm's