import hmac, hashlib

class Authenticate:
    def __init__(self, public_key, private_key, method, url, timestamp):
        self._public_key = public_key
        self._private_key = private_key

        self.method = method
        self.url = url
        self.timestamp = timestamp

    def _generate_auth_hash(self):
        data = bytes(self.method + '|' + self.url + '|' + self._public_key + '|' + self.timestamp, 'utf-8')
        return hmac.new(bytes(self._private_key, 'utf-8'), data, hashlib.sha256).hexdigest()

    def headers(self):
        signature = self._generate_auth_hash()
        return {"Accept": "application/json", "X-Imbo-Authenticate-Signature": signature, "X-Imbo-Authenticate-Timestamp": self.timestamp}


@@ -4,17 +4,23 @@
 ort hmac
-,
+%0Aimport
  hashlib
@@ -21,16 +21,17 @@
 ashlib%0A%0A
+%0A
 class Au
@@ -728,9 +728,8 @@
 estamp%7D%0A
-%0A

Clean up PEP8 inconsistencies in header classes