def clean_asn(asn):
    """
    Take something either as 18345, ASn17839 or AS2893
    And returns just the number as a number
    """
    if asn.lower().startswith('asn'):
        return int(asn[3:])
    elif asn.lower().startswith('as'):
        return int(asn[2:])
    else:
        return int(asn)
