Update api.py to match changes in recommendations.py
Modify the huge recs list in place, rather than copying it
Prevent dupes appearing in the recs list
Check shuffled neighbours in buckets rather than every pair, in case of unreasonably large buckets
Break up huge list comprehension
Update test script