def dict_to_pdnode(d):
 e = dict()
 for (k, v) in iteritems(d):
  if (v is not None):
   if isinstance(v, list):
    v = ' DCTB '.join([str(x) for x in v])
   else:
    v = str(v)
   v = str(v)
   v = v.replace('"', "'")
   e[k] = v
 pynode = pd.Node(**e)
 return pynode

def dict_to_pdnode ( d ) : e = dict ( ) for ( k , v ) in iteritems ( d ) : if ( v is not None ) : if isinstance ( v , list ) : v = ' DCTB ' . join ( [ str ( x ) for x in v ] ) else : v = str ( v ) v = str ( v ) v = v . replace ( '"' , "'" ) e [ k ] = v pynode = pd . Node ( ** e ) return pynode
create pydot node from dict .