Officials said it took three hours to rescue the python from an industrial waste pipe near its natural habitat in eastern India.