def IsInternetExplorer(name): import re from types import NoneType if type(re.search(r'iexplore.exe$',name)) != NoneType: return True else: return False # Lets create an instance of ShellWindows Interface