def strconvert(d):
 return dict([(str(k), v) for (k, v) in six.iteritems(d)])

def strconvert ( d ) : return dict ( [ ( str ( k ) , v ) for ( k , v ) in six . iteritems ( d ) ] )
converts all keys in dictionary to str type .