old_contents: # -*- coding: utf-8 -*-
  
  class Key:
      def __init__(self, modulo, exponent):
          self.__modulo = modulo
          self.__exponent = exponent
  
      def getBits(self):
          return self.__modulo.bit_length()
  
      def getModulo(self):
          return self.__modulo
  
      def getExponent(self):
          return self.__exponent
  
      def isPublic(self):
          return False
  
      def isPrivate(self):
          return False
  
  
  class PrivateKey(Key):
      def __init__(self, modulo, decipherExponent):
          Key.__init__(self, modulo, decipherExponent)
  
      def getDecipherExponent(self):
          return self.getExponent()
  
      def isPrivate(self):
          return True
  
  
  class PublicKey(Key):
      def __init__(self, modulo, encipherExponent):
          Key.__init__(self, modulo, encipherExponent)
          self.__isPublic = True
  
      def getEncipherExponent(self):
          return self.getExponent()
  
      def isPublic(self):
          return True
  
new_contents: # -*- coding: utf-8 -*-
  
  
  class Key:
      def __init__(self, modulo, exponent):
          self._modulo = modulo
          self._exponent = exponent
  
      def get_bits(self):
          return self._modulo.bit_length()
  
      def get_modulo(self):
          return self._modulo
  
      def get_exponent(self):
          return self._exponent
  
      @staticmethod
      def is_public():
          return False
  
      @staticmethod
      def is_private():
          return False
  
  
  class PrivateKey(Key):
      def __init__(self, modulo, decipher_exponent):
          Key.__init__(self, modulo, decipher_exponent)
  
      def get_decipher_exponent(self):
          return self.get_exponent()
  
      @staticmethod
      def is_private():
          return True
  
  
  class PublicKey(Key):
      def __init__(self, modulo, encipher_exponent):
          Key.__init__(self, modulo, encipher_exponent)
          self.__isPublic = True
  
      def get_encipher_exponent(self):
          return self.get_exponent()
  
      @staticmethod
      def is_public():
          return True
  
subject: implement PEP8 requirements in key