cleaned up the python API and started work on add hmac 256 digest to the auth