A Python parser for generating Python/C/Matlab solver interfaces