Michael A. Taylor’s homer lifts Pirates past Astros