Is there a way to do this?
####################
try:
# 9.2 and beyond
import arcgisscripting, collections, arcpy, sys, os
gp = arcgisscripting.create()
except:
# 9.1 and before
import win32com.client, collections, arcpy, sys, os
gp = win32com.client.Dispatch("esriGeoprocessing.GpDispatch.1")
# Set version
gp.SetProduct("ArcEditor")
# Set the workspace
gp.workspace = ("M:\")
# Publish map to PMF
gp.blankblankblankblank
# Package PMF
gp.blankblankblankblank