i would pass on that car. For $27k you should be able to find a similar car with similar miles without the accident.
Without seeing photos of the accident you are really taking their word on the extent of the damage and repairs performed.
If it is an 09, does it have any warranty left? if so, you could possibly negotiate the price down and get an extended warranty with bmw if you are really set on the car.