From MIA you can fly AA direct to Lima and then from BA you fly direct AA back to MIA. With American it is pretty easy they almost have these routes sewn up and usually have the best fares.