def dump_object(header, obj):
 result = (header + '\n')
 for key in obj.hash:
  if ((key == 'afe') or (key == 'hash')):
   continue
  result += ('%20s: %s\n' % (key, obj.hash[key]))
 return result

def dump_object ( header , obj ) : result = ( header + '\n' ) for key in obj . hash : if ( ( key == 'afe' ) or ( key == 'hash' ) ) : continue result += ( '%20s: %s\n' % ( key , obj . hash [ key ] ) ) return result
dump an objects attributes and methods kind of like dir() .