def _security_auth_headers(self, username, password, headers):
        userColonPassword = username + ":" + password
        b64UserColonPassword = base64. \
            b64encode(str_to_bytes(userColonPassword)).decode("ascii")
        headers['Authorization'] = 'Basic %s' % b64UserColonPassword
Add in the requisite HTTP Authentication Headers
dataset/ETHPy150Open basho/riak-python-client/riak/transports/http/connection.py/HttpConnection._security_auth_headers