Check result against byte literals to support python 3