This can be done quite easily using pythonnet:
http://pythonnet.github.io/
You load the Microsoft.AnalysisServices.dll that is provided with SQL Server 2005 and 2008 or get the redistributable package here:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4ce2-b80d-2343c099bcb4
search for SQLSERVER2008_ASAMO10.msi
Then you can load it up and use it. Here is an example that simply processes cubes:
import CLR
from CLR.System.Reflection import Assembly
Assembly.LoadWithPartialName("AnalysisServices.DLL")
from CLR.Microsoft.AnalysisServices import Server
from CLR.Microsoft.AnalysisServices import ProcessType
serverName = 'localhost\sql2005'
dbName = 'MyDatabase'
# Connect to server
amoServer = Server()
amoServer.Connect(serverName)
# Connect to database
amoDb = amoServer.Databases[dbName]
amoDb.Process(ProcessType.ProcessFull)