A Florida woman who slipped out of handcuffs in a patrol car and opened fire on a deputy during a traffic stop has been sentenced to 40 years in prison for attempted murder.