def printSequences(x, formatString="%d"):
  """
  Print a bunch of sequences stored in a 2D numpy array.
  """
  [seqLen, numElements] = x.shape
  for i in range(seqLen):
    s = ""
    for j in range(numElements):
      s += formatString % x[i][j]
    print s
Print a bunch of sequences stored in a 2D numpy array.