remove numpy dependence in sweep_read.py