[1.6.x] Fixed #20722 -- Fixed MemcachedCache backend get_many on Python 3.

Backport of 3c736207a3 from master