No need for scipy after all