Create gpio.py

A manager with a loop to handle the gpio of the Raspberry Pi