added support for cancelling transfer

@metcalf 

Added python support for cancelling transfers