use csv reader for palette reading
refactor app.py