Your Relay class is storing class constants GPIO.LOW and GPIO.HIGH as instanstance varibles. You really don't need to store them as those constants are availible to you through GPIO. If you do want to rename them to on/off, they should be class static. i.e:
Your
Relay
class is storing class constants GPIO.LOW and GPIO.HIGH as instanstance varibles. You really don't need to store them as those constants are availible to you through GPIO. If you do want to rename them to on/off, they should be class static. i.e:you then access them like
Relay.LIGHTON