Triggering Python program using an Arduino - spectrometer

Never thought about that to be honest... but it definitely sounds like the better idea.
My main problem is, that I have no idea how to implement that feature into the software.