util.py add mean_average_precision