Tiny parrots reveal how dinosaurs may have learned to fly