old_contents: import base64
  import unittest
  
  
  def setup_package(self):
      pass
  
  
  def teardown_package(self):
      pass
  
  
  class BaseS3EncryptTest(unittest.TestCase):
  
      def decode64(self, data):
          return base64.b64decode(data)
  
      def encode64(self, data):
          return base64.b64encode(data)
  
new_contents: import base64
  import codecs
  import unittest
  
  
  def setup_package(self):
      pass
  
  
  def teardown_package(self):
      pass
  
  
  class BaseS3EncryptTest(unittest.TestCase):
  
      def decode64(self, data):
          return base64.b64decode(codecs.decode(data, 'utf-8'))
  
      def encode64(self, data):
          return codecs.encode(base64.b64encode(data), 'utf-8')
  
subject: Make test helpers py 3 compatable