Bug fixex to gpiotesting.py