(env) [tfalgout@host yahoo.contrib.network_login]$ cat conf/escape.cfg
[prompt]
no_escape = $
escape = \$
(env) [tfalgout@host yahoo.contrib.network_login]$ python
Python 2.7.11 (default, Jan 29 2016, 21:44:53)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ConfigParser
>>> config = ConfigParser.SafeConfigParser()
>>> config.read('conf/escape.cfg')
['conf/escape.cfg']
>>> config.get('prompt', 'no_escape')
'$'
>>> config.get('prompt', 'escape')
'\\$'
>>>