use numpy tolist builtin method