Update core.py

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