use tolist on numpy scalars