Python Radiative Transfer Emission code (pyrate): non-local thermodynamic equilibrium spectral lines simulations. Issue 2 (5th May 2018)