Fix core.py

revert: fix parameters ordering when calling Device.read from Endpoint.read