def from_json_format(conf):
    '''Convert fields of parsed json dictionary to python format'''
    if 'fmode' in conf:
        conf['fmode'] = int(conf['fmode'], 8)
    if 'dmode' in conf:
        conf['dmode'] = int(conf['dmode'], 8)
def from_json_format ( conf ) : if 'fmode' in conf : conf [ 'fmode' ] = int ( conf [ 'fmode' ] , 8 ) if 'dmode' in conf : conf [ 'dmode' ] = int ( conf [ 'dmode' ] , 8 )
Convert fields of parsed json dictionary to python format