This message was posted on behalf of Intel Corporation
Unfortunately there aren't example codes in Python for this sensor. Actually, this sensor doesn't work well on Edison because the Edison's IO cannot switch fast enough between input/output. If you still want to try using this sensor I recommend you to check the following threads, although there aren't Python examples for it:
On the other hand, if you want to explore the use of other temperature sensors with Python, I recommend you to check the UPM repository in the following site: https://github.com/intel-iot-devkit/upm. There are many examples for Python in the following site: https://github.com/intel-iot-devkit/upm/tree/master/examples/python, and a list of supported sensors can be checked in this site: http://iotdk.intel.com/docs/master/upm/modules.html
Hope you find it useful.