Instead of
precision_curve, recall_curve, thresholds = precision_recall_curve(y_test, y_scores)
it should be
precision_curve, recall_curve, thresholds = precision_recall_curve(1-y_test, y_scores)