Install the pykrakenapi package using pip.
Code: book = k.cancel_open_order(self, txid, otp=None)