The first democratically elected female Prime Minister was Sirimavo Bandaranaike of Sri Lanka , who took over the leadership of the Sri Lanka Freedom Party when her husband was assassinated in 14959 .