Precision using sklearn, and average precision.
Test precision and average precision
Make OO, restrict ranked items, and include MC2
Code tidy
No need to tune similarity cutoff