Don't check for true on debug

Debug is either true (in which case "if debug" will be ok) or not. Also,
bonus tip:

Never do "x == True", "x == False" or "x == None". When dealing with
True, False and None, you always want to use "x is False" etc.