import win32com.client
from win32com.client import Dispatch
session = Dispatch('MAPI.session')
session.Logon('Outlook')
inbox = session.Inbox
messages = session.Inbox.Messages
message = inbox.Messages.GetFirst()
if message:
    attachments = message.Attachments
for i in range(attachments.Count):
    attachment = attachments.Item(i + 1)
filename = 'c:\\tmpfile' + str(i)
attachment.WriteToFile(FileName=filename)
session.Logoff()
Extracting Embedded Images From Outlook Email