def get_keys_from_file(csv):
    """Extract the credentials from a csv file."""
    lines = tuple(open(csv, 'r'))
    creds = lines[1]
    access = creds.split(',')[2]
    secret = creds.split(',')[3]
    return access, secret