def err_xml(message, type='Sender', code='ValidationError'):
 return ('<ErrorResponse xmlns="http://elasticmapreduce.amazonaws.com/doc/2009-03-31">\n  <Error>\n    <Type>%s</Type>\n    <Code>%s</Code>\n    <Message>%s</Message>\n  </Error>\n  <RequestId>eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee</RequestId>\n</ErrorResponse>' % (type, code, message))

def err_xml ( message , type = 'Sender' , code = 'ValidationError' ) : return ( '<ErrorResponse xmlns="http://elasticmapreduce.amazonaws.com/doc/2009-03-31">\n  <Error>\n    <Type>%s</Type>\n    <Code>%s</Code>\n    <Message>%s</Message>\n  </Error>\n  <RequestId>eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee</RequestId>\n</ErrorResponse>' % ( type , code , message ) )
use this to create the body of boto response errors .