Python library for One Wire devices?

I’m trying to interface with a DS18B20 temp sensor using this tutorial:
Everything works fine and I’m getting correct readings, however, I need to run some other commands, like to set the thresholds on the sensor. The author uses Python to read from the sensor, so I was wondering if I can use Python to write or do other commands. Since I didn’t have to install libraries or anything to use the read command, I’m hoping I can do other commands as well.