Fixed small issue with script

In the event that there are two isogenous curves E and E’, both within
the inputted list of curves, but E’ cannot be found by the
isogeny_class(E) function, the script will output details for E’ twice:
in practice, this shouldn’t happen often, but this commit fixed that
issue.