code: def _calc_sizes(self):
          
          if self.size > 1024:
              self.unit = "Mb"
              self.size = (self.size / 1024)
          if self.size > 1024:
              self.unit = "Gb"
              self.size = (self.size / 1024)
docs: Package size calculation