Python Code Investigating Galaxy Emission