replace that terrible n^2 algorithm with an n one.
final setup for PyPI