Snakes often make noises - especially when they are being held or messed with - that emanate from the glottis and the nares. These are usually the expulsion of breath due to stress.
Occasional situational whistling from the glottis is normal, and is a by-product of the shape of the glottis X the rush of air forced through it.