code: def decrypt_aes_cbc(ciphertext, key, iv):
      
      if not isinstance(ciphertext, bytes):
          raise TypeError("content to decrypt must by bytes.")
      
      # Just decrypt the content with the created key
      aes = AES.new(key, AES.MODE_CBC, iv)
      decrypted_content = aes.decrypt(ciphertext)
      padding = ord(decrypted_content[-1:len(decrypted_content)])  # This is a difference in python2 vs python3, so we are explicit about
                                              # the range so that return value is the same.
      decrypted_content = decrypted_content[:len(decrypted_content) - padding]
      return decrypted_content
docs: This method decrypts contents and strips padding.
      
      :rtype: bytes