I think most Python readers would expect to see something like `'{i} Hidden Nodes: {val}'.format(i=i, val=str(test(...))`.

Also, not 100% sure where you're at for line count, but it might be better to factor that last `str(test(...))` call into a separate local variable assignment above this line.