How to initialize BeagleBone Black GPIO and use it with python?

I’m new to BegaleBone and will use an I2C sensor with the GPIO.
With Wich command I can reset the GPIO?
How I can proof GPIO of initialized Pins

Find example code at

https://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/dir_5c0d64f70903e893b1efe571a4b8de29.html

described here

https://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/ChaExamples.html