def lowercase_attr_names(tag):
 tag.attrs = dict([(key.lower(), value) for (key, value) in iteritems(tag.attrs)])

def lowercase_attr_names ( tag ) : tag . attrs = dict ( [ ( key . lower ( ) , value ) for ( key , value ) in iteritems ( tag . attrs ) ] )
lower-case all attribute names of the provided beautifulsoup tag .