Actually I realize that you are referring to the packages in lowercase consistently, but maybe I'd use fixed-width font, i.e. ``scipy``, ``numpy`` and ``astropy`` in that case.