major refactor: moved common functions to util.py; moved k-mer enumeration stuff to kmers.py