updated setup.py read function