human
I wrote the below code

    mapi.MAPIInitialize(None)
    session = mapi.MAPILogonEx(0, MAPIProfile, None, (mapi.MAPI_EXTENDED | mapi.MAPI_USE_DEFAULT))
    messagestorestable = session.GetMsgStoresTable(0)
    messagestorestable.SetColumns((mapitags.PR_ENTRYID, mapitags.PR_DISPLAY_NAME_A, mapitags.PR_DEFAULT_STORE), 0)
    while True:
        rows = messagestorestable.QueryRows(1, 0)
        if (len(rows) != 1):
            break
        row = rows[0]
        if ((mapitags.PR_DEFAULT_STORE, True) in row):
            break
    ((eid_tag, eid), (name_tag, name), (def_store_tag, def_store)) = row
    msgstore = session.OpenMsgStore(0, eid, None, (mapi.MDB_NO_DIALOG | mapi.MAPI_BEST_ACCESS))
    (hr, props) = msgstore.GetProps(mapitags.PR_IPM_OUTBOX_ENTRYID, 0)
    (tag, eid) = props[0]
    if (mapitags.PROP_TYPE(tag) == mapitags.PT_ERROR):
        raise TypeError(('got    PT_ERROR    instead    of    PT_BINARY:    %s' % eid))
    outboxfolder = msgstore.OpenEntry(eid, None, mapi.MAPI_BEST_ACCESS)
    message = outboxfolder.CreateMessage(None, 0)
    pal = []
    def makeentry(recipient, recipienttype):
        return ((mapitags.PR_RECIPIENT_TYPE, recipienttype), (mapitags.PR_SEND_RICH_INFO, False), (mapitags.PR_DISPLAY_TYPE, 0), (mapitags.PR_OBJECT_TYPE, 6), (mapitags.PR_EMAIL_ADDRESS_A, recipient), (mapitags.PR_ADDRTYPE_A, 'SMTP'), (mapitags.PR_DISPLAY_NAME_A, recipient))
    if SendTo:
        pal.extend([makeentry(recipient, mapi.MAPI_TO) for recipient in SendTo.split(',')])
    if SendCC:
        pal.extend([makeentry(recipient, mapi.MAPI_CC) for recipient in SendCC.split(',')])
    if SendBCC:
        pal.extend([makeentry(recipient, mapi.MAPI_BCC) for recipient in SendBCC.split(',')])
    message.ModifyRecipients(mapi.MODRECIP_ADD, pal)
    message.SetProps([(mapitags.PR_BODY_A, Message), (mapitags.PR_SUBJECT_A, Subject)])
    outboxfolder.SaveChanges(0)
    message.SubmitMessage(0)

What's a good function header?
assistant
#Here's a good function header.

def SendEMAPIMail(Subject='', Message='', SendTo=None, SendCC=None, SendBCC=None, MAPIProfile=None):