agora.io.bridge.flatten

agora.io.bridge.flatten(d, parent_key='', sep='_')

Flatten nested dict. Adapted from https://stackoverflow.com/a/6027615