'Returns the config values from the config file scoped to the current
profile.
The configuration data is loaded **only** from the config file.
It does not resolve variables based on different locations
(e.g. first from the session instance, then from environment
variables, then from the config file).  If you want this lookup
behavior, use the ``get_config_variable`` method instead.
Note that this configuration is specific to a single profile (the
``profile`` session variable).
If the ``profile`` session variable is set and the profile does
not exist in the config file, a ``ProfileNotFound`` exception
will be raised.
:raises: ConfigNotFound, ConfigParseError, ProfileNotFound
:rtype: dict'

def get_scoped_config(self):

    profile_name = self.get_config_variable('profile')
    profile_map = self._build_profile_map()
    if (profile_name is None):
        return profile_map.get('default', {})
    elif (profile_name not in profile_map):
        raise ProfileNotFound(profile=profile_name)
    else:
        return profile_map[profile_name]
