Before proceeding further, my system configuration is as follows:
Mac OS X 10.6.6
MATLAB 2010b
ActiveState Python 2.7

I have a gui built using matlab. I wrote the following python script
to open that matlab gui using pymatlab python module:

Code:
from pymatlab.matlab import MatlabSession 
session = MatlabSession() 
session.run('cd ~/ratter/ExperPort') 
session.run('addpath(genpath(pwd))')
...