def METHOD_NAME(self, prompt, validation_fn=None):
    okay = False
    while not okay:
        val = raw_input('%s: ' % prompt)
        if validation_fn:
            okay = validation_fn(val)
            if not okay:
                print('Invalid value: %s' % val)
        else:
            okay = True
    return val