update to exo/genesis.py to fix bug in writing element map