A python Sim.I.Am port from Jean-Pierre's Matlab program from GA Tech.