def ask_ok (prompt, retries=4, complaint='yes or no, please!'):
    while True:
        ok=raw_input(prompt)
        if ok in ('y','ye','yes'): return True
        if ok in ('n','no','nop','nope'): return False
        retries = retries -1
        if retries<0: raise IOError, 'refusenik user'
        print complaint
        

74ee299fa2bf4455f1d9b5aa527df05dbad34a5d
def ask_ok (prompt, retries=4, complaint='yes or no, please!'):
    while True:
        ok=raw_input(prompt)
        if ok in ('y','ye','yes'): return True
        if ok in ('n','no','nop','nope'): return False
        retries = retries -1
        if retries<0: raise IOError, 'refusenik user'
        print complaint
        
