Generate type libraries¶ To expose the COM interface of Lotus Notes in Python, you should generate the type libraries. from win32com.client import makepy makepy.GenerateFromTypeLibSpec('Lotus Domino Objects') makepy.GenerateFromTypeLibSpec('Lotus Notes Automation Classes') from win32com.client import Dispatch notesSession = Dispatch('Lotus.NotesSession') dir(notesSession) notesSession. # IPython o