# -*- coding: utf-8 -*-
#!/usr/bin/python

from applescript import asrun, asquote

subject = 'A new email'

body = '''This is the body of my "email."
I hope it comes out right.

Regards,
Dr. Drang
'''
ascript = '''
tell application "Mail"
    activate
    make new outgoing message with properties {{visible:true, subject:{0}, content:{1}}}
end tell
'''.format(asquote(subject), asquote(body))

print ascript
asrun(ascript)
