def prompt_user(prompt, default=''):
 result = None
 if SHOW_PROMPT:
  print prompt
  result = raw_input()
 return (default if (not result) else result)

def prompt_user ( prompt , default = '' ) : result = None if SHOW_PROMPT : print prompt result = raw_input ( ) return ( default if ( not result ) else result )
utilty for displaying a prompt and getting the results from a user .