python port of my haskell raytracing impulse response generator