trying to fix python3 str vs byte issue