Was slow because I forgot to declare a variable

Now the speed matches.
Converted all polyprism to Cython

The speed is equivalent now to the original (a bit faster actually).