FIrst time trying tree classifier in python
First of all, pandas, scikit-learn, numpy, keras and tf come with a lot of data loading utilities. 


Your data_processor(input_file) can be replaced with pandas.read_csv().
Alternatively, IRIS dataset is avaiable at sklearn.datasets.load_iris()


I would advise to have a look at Scikit-learn's example of analyzing IRIS