def get_sender(obj, lclass):
    """ Retrieves the sender of a message """
    author = obj.find('', class_=lclass)
    return_name = ''
    return_username = ''
    if author:
        return_name = author.text
    if author.name == 'a':
        return_username = author['href'].split('/')[3]
    return (return_name, return_username)