def rem_mentions_urls(tokens):
    """
    Replaces any mentions with 'at' and any url with 'url'.
    """
    final = []
    for t in tokens:
        if t.startswith('@'):
            final.append('at')
        elif t.startswith('http'):
            final.append('url')
        else:
            final.append(t)
    return final