def get_chunks(source, chunk_len):
 return (source[i:(i + chunk_len)] for i in range(0, len(source), chunk_len))

def get_chunks ( source , chunk_len ) : return ( source [ i : ( i + chunk_len ) ] for i in range ( 0 , len ( source ) , chunk_len ) )
returns an iterator over chunk_len chunks of source .