The snake doesn't provoke opportunity attacks when it flies out of an enemy's reach.
Melee Weapon Attack: +6 to hit, reach 5 ft., one target. Hit: 1 piercing damage plus 7 (3d4) poison damage.