Rename read API query to /data
Fix pep errors