I have written it using the _ library but it gets quite slow quite fast so I\'m wondering if there is a way to make it quicker.
_
My script takes as input