def attrprint(d, delimiter=', '):
 return delimiter.join((('"%s"="%s"' % item) for item in sorted(d.items())))

def attrprint ( d , delimiter = ', ' ) : return delimiter . join ( ( ( '"%s"="%s"' % item ) for item in sorted ( d . items ( ) ) ) )
print a dictionary of attributes .