Make _int_to_cidr a classmethod for consistency