def _pretty_any(obj):
 outstr = u''
 for k in obj:
  if (isinstance(obj[k], string_types) and (len(obj[k]) > 65)):
   outstr += u'[{0}]\n'.format(k)
   outstr += u'{0}'.format(_pretty_longstring(obj[k], prefix=u'  '))
   outstr += u'\n'
  else:
   outstr += u'[{0}] {1}\n'.format(k, obj[k])
 return outstr

def _pretty_any ( obj ) : outstr = u'' for k in obj : if ( isinstance ( obj [ k ] , string_types ) and ( len ( obj [ k ] ) > 65 ) ) : outstr += u'[{0}]\n' . format ( k ) outstr += u'{0}' . format ( _pretty_longstring ( obj [ k ] , prefix = u'  ' ) ) outstr += u'\n' else : outstr += u'[{0}] {1}\n' . format ( k , obj [ k ] ) return outstr
helper function for pretty-printing any attrdict object .