changes to get_next_data func

using get_next_data in data_pool.py requires to call has_next_data(). I think this can be avoided . @anoopsarkar @yulanh