def extract_email_addresses(emails):
    """Returns a list of emails from either a string or a list"""
    if type(emails) == str:
        emails = emails.split(',')
        emails = list(map(lambda x: x.strip(), emails))
    return emails
