Python class for galaxies.