Human: Cross-platform addressing of the config file Assistant: 
Here is some code to get file '~/foo.ini'

config_file = os.path.expanduser('~/foo.ini')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.