Is numpy's loadtxt insufficient here? It won't require the extra import.