Add cancelJob function

Add a canJob function for python proxy