Python is a universal environment for scientific calculations.
Python with NumPy, SciPy and MatPlotLib is actively used as a universal environment for scientific calculations as a replacement for common commercial Matlab, IDL and other packages.
For example, the Astropy library is a popular tool for astronomical calculations.