python reaction-calculation script.