Python Use Function Output Matlab Drive