qapi: Adapt to moved location of 'maketrans' function in py3