Cache: Fix python3 runtime error

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>