A port of python-matlab-bridge by jaderberg, see https://github.com/jaderberg/python-matlab-bridge