Fix processing of redis keys in clear & cleanup (python 3)

Redis keys are bytes in PY3, not str like in python 2.
Thumbnail keys are strictly ascii, so we can decode them no problem.