Pablo Lopez, Twins tame Pirates