I just pushed some changes to make all of the proper casts and changed the n_nodes_samples to int instead of float.  I tried leaving it as its default type, but json didn't like that.  (in python 2.7, not sure about 3)