def session_factory(mailer_config):
    return boto3.Session(region_name=mailer_config['region'], profile_name=mailer_config.get('profile', None))
def session_factory(mailer_config):
    return boto3.Session(region_name=mailer_config['region'], profile_name=mailer_config.get('profile', None))