Queensland police officers went to the aid of a woman who had a carpet python coiled around her leg.