def rev_comp(seq):
    """Generates reverse complement of DNA string"""
    new_seq = ''
    conversion = {'A': 'T', 'T': 'A', 'G':'C', 'C':'G'}
    
    for i in reversed(seq):
        new_seq += conversion[i]
        
    return new_seq