Python Mean Average Precision Medium