def get_config(create_if_necessary=True):
    if not os.access('config.ini', os.R_OK) and create_if_necessary:
        config = setup_config()
        print('Reading newly created config.ini')
        return config
    elif not os.access('config.ini', os.R_OK):
        print('Configuration (config.ini) not found (have you tried running "setup.py" first?')
        exit(3)
    else:
        print('Configuration file "config.ini" found')
        return Configuration()