GNU Octave could be considered as a free alternative to MATLAB. It features compatible file format *.m and implements most of MATLAB functions. As MATLAD do, GNU Octave also supports COM programming interface. You can write programms in GNU Octave interracting with QuickField.
Examples on using QuickField with Python:
Relay dynamics simulation using Octave and ActiveField (QuickField Object Model)