Added support for cancelling transfer

@metcalf 

cc/ @jimdanz 

Added python support for canceling transfers