Get variant ID from pyvcf.model._Record

def record_variant_id(record):
    """Get variant ID from pyvcf.model._Record"""
    if record.ID:
        return record.ID
    else:
        return record.CHROM + ':' + str(record.POS)