def enter_api_key(parser=None):
if parser is None:<EOL><INDENT>parser = SafeConfigParser()<EOL><DEDENT>parser.add_section('<STR_LIT>')<EOL>global api_key, api_secret<EOL>api_key = raw_input('<STR_LIT>')<EOL>api_secret = raw_input('<STR_LIT>')<EOL>parser.set('<STR_LIT>', '<STR_LIT>', api_key)<EOL>parser.set('<STR_LIT>', '<STR_LIT>', api_secret)<EOL>with open(CONFIG_PATH, '<STR_LIT:wb>') as f:<EOL><INDENT>parser.write(f)<EOL><DEDENT>
Prompt for API key and secret
    Then write them to CONFIG_PATH(Default: ~/.grabflickr.conf)

    :param parser: Config parser
    :type parser: SafeConfigParser