def format_xml_exception_message(location, key, value):
 exception_message = 'Block-location:{location}, Key:{key}, Value:{value}'.format(location=unicode(location), key=key, value=value)
 return exception_message

def format_xml_exception_message ( location , key , value ) : exception_message = 'Block-location:{location}, Key:{key}, Value:{value}' . format ( location = unicode ( location ) , key = key , value = value ) return exception_message
generate exception message for videodescriptor class which will use for valueerror and unicodedecodeerror when setting xml attributes .