def generate_kmers(sequence, window, slide=1):
    """Make kmers from a sequence
        Args:
            - sequence (str); sequence to compute kmer
            - window (int); size of kmers
            - slide (int); no of bases to move 'window' along sequence
            default = 1
            
        Return:
            - 'list' object of kmers
        
        Example:
            - >>> DNA_kmers('ATGCGTACC', window=4, slide=4)
                ['ATGC', 'GTAC']
    """
    
    all_possible_seq = []
    kmers = []
    
    for base in range(0, len(sequence), slide): # indices
        # extend by window
        all_possible_seq.append(sequence[base:base + window]) 
        
    # remove all kmers != window    
    for seq in all_possible_seq:
        if len(seq) == window:
            kmers.append(seq)

    return kmers