Speed improvement for Python spikequeue

Closes #230, may not be working properly yet (had to rush out before finishing it).