try savetxt and loadtxt to avoid python bug: http://bugs.python.org/issue11564