def get_namespace_attrs():
 return ' '.join(('xmlns:{}="{}"'.format(k, v) for (k, v) in XML_NAMESPACES.items()))

def get_namespace_attrs ( ) : return ' ' . join ( ( 'xmlns:{}="{}"' . format ( k , v ) for ( k , v ) in XML_NAMESPACES . items ( ) ) )
returns string suitable to be used as an xmlns parameters in xblock xml representation .