GPIO.setmode(x) is missing. It should be either a dummy function or it should do something meaningful.
Currently when 'P8_10' or 'GPIO0_10' is for instance used. with GPIO.setmode(BOARD or BCM) the additional syntax of using integer 10 could be mapped to either P8_10 or GPIO0_10 .