A complier translate Matlab script into Python