Active Analog sensor in Python

I have successfully connected and interacted with the analog sensor NXTSumoEyes-v2 from mindsensor. This sensor has two mode, short range and long range. I can only access the short rage mode since the, I am reading passively the data from the sensor. I just wonder if there is any code or command in python for reading the data from the analog sensor in active mode? Please advise.

That sensor is not very well documented, but it looks like you can change the range by setting the sensor type to NXT Light Sensor Active/Inactive.

On the BrickPi+ try TYPE_SENSOR_LIGHT_OFF and TYPE_SENSOR_LIGHT_ON. On the BrickPi3 try SENSOR_TYPE.NXT_LIGHT_OFF and SENSOR_TYPE.NXT_LIGHT_ON.