Making salt/key python3 compatible