Remember, always import library.
import easymacro as app
doc = app.active app.msgbox(doc.type)
Contents: