added new gpio.py file with lots of bad code