Dispatch working for python