'Activate: Activate Internet Explorer and optionally select window designated by Window Identifier.
Required argument: Window Identifier
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Window Identifier of window to activate'

def Activate(self, _object=None, _attributes={}, **_arguments):

    _code = 'WWW!'
    _subcode = 'ACTV'
    if _arguments:
        raise TypeError, 'No    optional    args    expected'
    _arguments['----'] = _object
    (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
    if _arguments.get('errn', 0):
        raise aetools.Error, aetools.decodeerror(_arguments)
    if _arguments.has_key('----'):
        return _arguments['----']
