Added function to get public and private key from Tox object.