Interesting..  well, I'd think the trig functions would be by far the most expensive part of that program.  Is Python really that much slower for control structures?  That's literally the only other computation there.