fixed bug in tree reader with c-arrays and removed python dependency