Some translations from Matlab syntax to Python syntax