Making salt.modules.keyboard python3 compatible